package com.xxl.job.consume.model;

import org.json.JSONStringer;

/**
 * 报警信息实体
 */
public class AlarmInfoModel {

    private String alarmUniqueId;//告警唯一ID
    private String almid;//告警ID
    private String systemId;//系统id
    private String systemName;//系统名称（一般固定为科大国创）
    private String spaceid;//所属空间域id
    private String spacename;//所属空间域名称
    private String devid;//设备id
    private String devname;//设备名称
    private String sigid;//信号id(pk2/2)
    private String signame;//信号名称
    private String gatherid;//集团告警id(10位)，上报综告id
    private String smid;//采集模块id
    private String devtypeid;//设备类型id
    private String devtypename; //设备类型名称
    private String almstr;//告警详情
    private String fval;//信号值
    private String eventTime;//告警发生时间
    private String dalTime;//告警接收时间
    private String lastEventTime;//最新发生时间
    private String lastDalTime;//最新接收时间
    private String ackTime;//确认时间
    private String cancelTime;//清除时间
    private String alarmCount;//告警发生次数
    private String ackUser; //确认人
    private String cancelUser; //清除人
    private String almtypeid;//告警类型id
    private String almtypename;//告警类型名称
    private String almcls; //事件级别
    private String almkey;//告警唯一标识（用于告警清除）
    private String alarmStatus; //1：实时告警\n2：清除告警\n3：恢复告警
    private String ackFlag; //0：未确认\n1：已确认
    private String sendStatus; //0：未上送\n1：已上送
    private String sendTimeFrame;//告警上送时间段
    private String sheetSendTime;//告警上送时间
    private String delayTime;//延时时间（默认为0）
    private String shieldStatus; //0：未屏蔽\n1：已屏蔽
    private String shieldMemo;//屏蔽备注
    private String freAlmFlag; //0：非频繁告警\n1：频繁告警
    private String mergeFlag; //0：未归并\n1：已归并
    private String mergeAlarmUniqueFlag; //所属主告警id
    private String isShow; //0：不展示\n1：展示
    private String specilty;//所属专业
    private String tenantid; //租户id
    private String sendSingleState;//1：未派单 2：已派单
    private String disposeStatus; //处理状态   0：未处理 1：已处理
    private String isAnalysis; //分析状态  0: 未分析  1 :已分析
    private String almCode;//告警编码

    public String getAlarmUniqueId() {
        return alarmUniqueId;
    }

    public void setAlarmUniqueId(String alarmUniqueId) {
        this.alarmUniqueId = alarmUniqueId;
    }

    public String getAlmid() {
        return almid;
    }

    public void setAlmid(String almid) {
        this.almid = almid;
    }

    public String getSystemId() {
        return systemId;
    }

    public void setSystemId(String systemId) {
        this.systemId = systemId;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getSpaceid() {
        return spaceid;
    }

    public void setSpaceid(String spaceid) {
        this.spaceid = spaceid;
    }

    public String getSpacename() {
        return spacename;
    }

    public void setSpacename(String spacename) {
        this.spacename = spacename;
    }

    public String getDevid() {
        return devid;
    }

    public void setDevid(String devid) {
        this.devid = devid;
    }

    public String getDevname() {
        return devname;
    }

    public void setDevname(String devname) {
        this.devname = devname;
    }

    public String getSigid() {
        return sigid;
    }

    public void setSigid(String sigid) {
        this.sigid = sigid;
    }

    public String getSigname() {
        return signame;
    }

    public void setSigname(String signame) {
        this.signame = signame;
    }

    public String getGatherid() {
        return gatherid;
    }

    public void setGatherid(String gatherid) {
        this.gatherid = gatherid;
    }

    public String getSmid() {
        return smid;
    }

    public void setSmid(String smid) {
        this.smid = smid;
    }

    public String getDevtypeid() {
        return devtypeid;
    }

    public void setDevtypeid(String devtypeid) {
        this.devtypeid = devtypeid;
    }

    public String getDevtypename() {
        return devtypename;
    }

    public void setDevtypename(String devtypename) {
        this.devtypename = devtypename;
    }

    public String getAlmstr() {
        return almstr;
    }

    public void setAlmstr(String almstr) {
        this.almstr = almstr;
    }

    public String getFval() {
        return fval;
    }

    public void setFval(String fval) {
        this.fval = fval;
    }

    public String getEventTime() {
        return eventTime;
    }

    public void setEventTime(String eventTime) {
        this.eventTime = eventTime;
    }

    public String getDalTime() {
        return dalTime;
    }

    public void setDalTime(String dalTime) {
        this.dalTime = dalTime;
    }

    public String getLastEventTime() {
        return lastEventTime;
    }

    public void setLastEventTime(String lastEventTime) {
        this.lastEventTime = lastEventTime;
    }

    public String getLastDalTime() {
        return lastDalTime;
    }

    public void setLastDalTime(String lastDalTime) {
        this.lastDalTime = lastDalTime;
    }

    public String getAckTime() {
        return ackTime;
    }

    public void setAckTime(String ackTime) {
        this.ackTime = ackTime;
    }

    public String getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(String cancelTime) {
        this.cancelTime = cancelTime;
    }

    public String getAlarmCount() {
        return alarmCount;
    }

    public void setAlarmCount(String alarmCount) {
        this.alarmCount = alarmCount;
    }

    public String getAckUser() {
        return ackUser;
    }

    public void setAckUser(String ackUser) {
        this.ackUser = ackUser;
    }

    public String getCancelUser() {
        return cancelUser;
    }

    public void setCancelUser(String cancelUser) {
        this.cancelUser = cancelUser;
    }

    public String getAlmtypeid() {
        return almtypeid;
    }

    public void setAlmtypeid(String almtypeid) {
        this.almtypeid = almtypeid;
    }

    public String getAlmtypename() {
        return almtypename;
    }

    public void setAlmtypename(String almtypename) {
        this.almtypename = almtypename;
    }

    public String getAlmcls() {
        return almcls;
    }

    public void setAlmcls(String almcls) {
        this.almcls = almcls;
    }

    public String getAlmkey() {
        return almkey;
    }

    public void setAlmkey(String almkey) {
        this.almkey = almkey;
    }

    public String getAlarmStatus() {
        return alarmStatus;
    }

    public void setAlarmStatus(String alarmStatus) {
        this.alarmStatus = alarmStatus;
    }

    public String getAckFlag() {
        return ackFlag;
    }

    public void setAckFlag(String ackFlag) {
        this.ackFlag = ackFlag;
    }

    public String getSendStatus() {
        return sendStatus;
    }

    public void setSendStatus(String sendStatus) {
        this.sendStatus = sendStatus;
    }

    public String getSendTimeFrame() {
        return sendTimeFrame;
    }

    public void setSendTimeFrame(String sendTimeFrame) {
        this.sendTimeFrame = sendTimeFrame;
    }

    public String getSheetSendTime() {
        return sheetSendTime;
    }

    public void setSheetSendTime(String sheetSendTime) {
        this.sheetSendTime = sheetSendTime;
    }

    public String getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(String delayTime) {
        this.delayTime = delayTime;
    }

    public String getShieldStatus() {
        return shieldStatus;
    }

    public void setShieldStatus(String shieldStatus) {
        this.shieldStatus = shieldStatus;
    }

    public String getShieldMemo() {
        return shieldMemo;
    }

    public void setShieldMemo(String shieldMemo) {
        this.shieldMemo = shieldMemo;
    }

    public String getFreAlmFlag() {
        return freAlmFlag;
    }

    public void setFreAlmFlag(String freAlmFlag) {
        this.freAlmFlag = freAlmFlag;
    }

    public String getMergeFlag() {
        return mergeFlag;
    }

    public void setMergeFlag(String mergeFlag) {
        this.mergeFlag = mergeFlag;
    }

    public String getMergeAlarmUniqueFlag() {
        return mergeAlarmUniqueFlag;
    }

    public void setMergeAlarmUniqueFlag(String mergeAlarmUniqueFlag) {
        this.mergeAlarmUniqueFlag = mergeAlarmUniqueFlag;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public String getSpecilty() {
        return specilty;
    }

    public void setSpecilty(String specilty) {
        this.specilty = specilty;
    }

    public String getTenantid() {
        return tenantid;
    }

    public void setTenantid(String tenantid) {
        this.tenantid = tenantid;
    }

    public String getSendSingleState() {
        return sendSingleState;
    }

    public void setSendSingleState(String sendSingleState) {
        this.sendSingleState = sendSingleState;
    }

    public String getDisposeStatus() {
        return disposeStatus;
    }

    public void setDisposeStatus(String disposeStatus) {
        this.disposeStatus = disposeStatus;
    }

    public String getIsAnalysis() {
        return isAnalysis;
    }

    public void setIsAnalysis(String isAnalysis) {
        this.isAnalysis = isAnalysis;
    }

    public String getAlmCode() {
        return almCode;
    }

    public void setAlmCode(String almCode) {
        this.almCode = almCode;
    }

    public String toJson() {
        return new JSONStringer().object()
                  .key("alarmUniqueId").value(alarmUniqueId)
                  .key("almid").value(almid)
                  .key("almCode").value(almCode)
                  .key("systemId").value(systemId)
                  .key("spaceid").value(spaceid)
                  .key("systemName").value(systemName)
                  .key("spacename").value(spacename)
                  .key("devid").value(devid)
                  .key("devname").value(devname)
                  .key("sigid").value(sigid)
                  .key("signame").value(signame)
                  .key("gatherid").value(gatherid)
                  .key("smid").value(smid)
                  .key("devtypeid").value(devtypeid)
                  .key("devtypename").value(devtypename)
                  .key("almstr").value(almstr)
                  .key("fval").value(fval)
                  .key("eventTime").value(eventTime)
                  .key("dalTime").value(dalTime)
                  .key("lastEventTime").value(lastEventTime)
                  .key("lastDalTime").value(lastDalTime)
                  .key("ackTime").value(ackTime)
                  .key("cancelTime").value(cancelTime)
                  .key("alarmCount").value(alarmCount)
                  .key("ackUser").value(ackUser)
                  .key("cancelUser").value(cancelUser)
                  .key("almtypeid").value(almtypeid)
                  .key("almtypename").value(almtypename)
                  .key("almcls").value(almcls)
                  .key("alarmStatus").value(alarmStatus)
                  .key("ackFlag").value(ackFlag)
                  .key("sendStatus").value(sendStatus)
                  .key("sendTimeFrame").value(sendTimeFrame)
                  .key("sheetSendTime").value(sheetSendTime)
                  .key("delayTime").value(delayTime)
                  .key("shieldStatus").value(shieldStatus)
                  .key("shieldMemo").value(shieldMemo)
                  .key("freAlmFlag").value(freAlmFlag)
                  .key("mergeFlag").value(mergeFlag)
                  .key("mergeAlarmUniqueFlag").value(mergeAlarmUniqueFlag)
                  .key("isShow").value(isShow)
                  .key("specilty").value(specilty)
                  .key("tenantid").value(tenantid)
                  .key("sendSingleState").value(sendSingleState)
                  .key("disposeStatus").value(disposeStatus)
                  .key("isAnalysis").value(isAnalysis)
                  .key("almkey").value(almkey)
                  .endObject().toString();
    }


}
